package io;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

public class FISDemo {
    public static void main(String[] args) throws IOException {
        File file=new File("fos.dat");
        FileInputStream fis=new FileInputStream(file);
        System.out.println( fis.read());
        System.out.println( fis.read());
        System.out.println( fis.read());//读到-1表示到了末尾
        System.out.println( fis.read());
        fis.close();
    }
}
